package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbBankaccountRecord;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbBankaccountRecord is a Querydsl query type for ETbBankaccountRecord
 */
@Label("账户信息记录表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbBankaccountRecord extends RelationalPathBase<ETbBankaccountRecord> {

    private static final long serialVersionUID = -1068696565;

    public static final QTbBankaccountRecord tbBankaccountRecord = new QTbBankaccountRecord("tb_bankaccount_record");

    public class PrimaryKeys {

        public final PrimaryKey<ETbBankaccountRecord> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ETbBankAccount> tbBankaccountRecordTbBankAccount1Fk = createForeignKey(tbBankAccountId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbFuelRecharge> tbBankaccountRecordTbFuelRecharge1Fk = createForeignKey(tbFuelRechargeId, "id");

    }

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final NumberPath<Float> money = createNumber("money", Float.class);

    public final DateTimePath<org.joda.time.DateTime> recordDate = createDateTime("recordDate", org.joda.time.DateTime.class);

    public final NumberPath<Float> recordMoney = createNumber("recordMoney", Float.class);

    public final StringPath tbBankAccountId = createString("tbBankAccountId");

    public final StringPath tbFuelRechargeId = createString("tbFuelRechargeId");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbBankaccountRecord(String variable) {
        super(ETbBankaccountRecord.class, forVariable(variable), "null", "tb_bankaccount_record");
        addMetadata();
    }

    public QTbBankaccountRecord(String variable, String schema, String table) {
        super(ETbBankaccountRecord.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbBankaccountRecord(Path<? extends ETbBankaccountRecord> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_bankaccount_record");
        addMetadata();
    }

    public QTbBankaccountRecord(PathMetadata<?> metadata) {
        super(ETbBankaccountRecord.class, metadata, "null", "tb_bankaccount_record");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(4).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(money, ColumnMetadata.named("money").withIndex(5).ofType(Types.REAL).withSize(12));
        addMetadata(recordDate, ColumnMetadata.named("recordDate").withIndex(2).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(recordMoney, ColumnMetadata.named("recordMoney").withIndex(3).ofType(Types.REAL).withSize(12));
        addMetadata(tbBankAccountId, ColumnMetadata.named("tb_bank_account_id").withIndex(6).ofType(Types.CHAR).withSize(45).notNull());
        addMetadata(tbFuelRechargeId, ColumnMetadata.named("tb_fuel_recharge_id").withIndex(7).ofType(Types.CHAR).withSize(24).notNull());
    }

}

